<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta charset="utf-8"/>
    <title>    TFC-Trotri Foundation Classes &raquo; \tfc\util\Upload
</title>
    <meta name="author" content=""/>
    <meta name="description" content=""/>

            <link href="../css/template.css" rel="stylesheet" media="all"/>
    
            <!--[if lt IE 9]>
        
        <![endif]-->
        <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
        <script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script>
        <script src="../js/bootstrap.js" type="text/javascript"></script>
        <script src="../js/template.js" type="text/javascript"></script>
        <script src="../js/prettify/prettify.min.js" type="text/javascript"></script>
    
            <link rel="shortcut icon" href="../img/favicon.ico"/>
        <link rel="apple-touch-icon" href="../img/apple-touch-icon.png"/>
        <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png"/>
        <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png"/>
    </head>
<body>

        <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span> <span class="icon-bar"></span>
                    <span class="icon-bar"></span> </a>
                <a class="brand" href="http://www.trotri.com/">Trotri官网</a><a class="brand" href="../index.html">TFC-Trotri Foundation Classes</a>

                <div class="nav-collapse">
                    <ul class="nav">
                        <li class="dropdown">
                            <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
                                API Documentation <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                                                    <li><a>Namespaces</a></li>
                                                                        <li><a href="../namespaces/tfc.html">tfc</a></li>
                                                                                                                                </ul>
                        </li>
                        <li class="dropdown" id="charts-menu">
                            <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
                                Charts <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../graph_class.html">
                                        <i class="icon-list-alt"></i>&#160;Class hierarchy diagram
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown" id="reports-menu">
                            <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
                                Reports <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../errors.html">
                                         
                                    </a>
                                </li>
                                <li>
                                    <a href="../markers.html">
                                        <i class="icon-list-alt"></i>&#160;Markers
                                    </a>
                                </li>
                                <li>
                                    <a href="../deprecated.html">
                                        <i class="icon-list-alt"></i>&#160;Deprecated
                                    </a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="go_to_top">
            <a href="#___" style="color: inherit">Back to top&#160;&#160;<i class="icon-upload icon-white"></i></a>
        </div>
    </div>
    
    <div id="___" class="container">
        <noscript>
            <div class="alert alert-warning">
                Javascript is disabled; several features are only available if Javascript is enabled.
            </div>
        </noscript>

        
            <style>
        .deprecated h2 {
            text-decoration: line-through;
        }
    </style>
    <div class="row">
        <div class="span4">
                    <div class="btn-group view pull-right" data-toggle="buttons-radio">
        <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button>
        <button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
    </div>
    <div class="btn-group visibility" data-toggle="buttons-checkbox">
        <button class="btn public active" title="Show public elements">Public</button>
        <button class="btn protected" title="Show protected elements">Protected</button>
        <button class="btn private" title="Show private elements">Private</button>
        <button class="btn inherited active" title="Show inherited elements">Inherited</button>
    </div>

        <ul class="side-nav nav nav-list">
        <li class="nav-header">
            <i class="icon-custom icon-method"></i> Methods
            <ul>
                                                                                                    <li class="method public">
        <a href="#method___construct" title="__construct :: 构造方法：初始化上传文件保存目录、文件的命名规则、保存文件的地址已经存在其他文件，是否允许替换">
            <span class="description">构造方法：初始化上传文件保存目录、文件的命名规则、保存文件的地址已经存在其他文件，是否允许替换</span><pre>__construct</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_save" title="save :: 检查并上传文件">
            <span class="description">检查并上传文件</span><pre>save</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getFileName" title="getFileName :: 获取最终保存的文件名">
            <span class="description">获取最终保存的文件名</span><pre>getFileName</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_checkSize" title="checkSize :: 检查上传的文件大小是否超过最大值">
            <span class="description">检查上传的文件大小是否超过最大值</span><pre>checkSize</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_checkType" title="checkType :: 检查上传的文件类型是否允许">
            <span class="description">检查上传的文件类型是否允许</span><pre>checkType</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_checkExt" title="checkExt :: 检查上传的文件后缀是否允许">
            <span class="description">检查上传的文件后缀是否允许</span><pre>checkExt</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_checkSavePath" title="checkSavePath :: 检查上传完文件后的完整路径
果保存文件的地址不存在其他文件，返回True；如果已经存在其他文件并且允许替换其他文件，返回True；否则返回False">
            <span class="description">检查上传完文件后的完整路径
果保存文件的地址不存在其他文件，返回True；如果已经存在其他文件并且允许替换其他文件，返回True；否则返回False</span><pre>checkSavePath</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_checkUpload" title="checkUpload :: 检查文件是否是通过 HTTP POST上传的，如果不是则可能是攻击性质的上传">
            <span class="description">检查文件是否是通过 HTTP POST上传的，如果不是则可能是攻击性质的上传</span><pre>checkUpload</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getSavePath" title="getSavePath :: 获取上传完文件后的完整路径">
            <span class="description">获取上传完文件后的完整路径</span><pre>getSavePath</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getSaveDir" title="getSaveDir :: 获取上传文件保存目录">
            <span class="description">获取上传文件保存目录</span><pre>getSaveDir</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setSaveDir" title="setSaveDir :: 设置上传文件保存目录">
            <span class="description">设置上传文件保存目录</span><pre>setSaveDir</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getNamePre" title="getNamePre :: 获取文件名前缀，可以是用户ID，随机数等唯一标志">
            <span class="description">获取文件名前缀，可以是用户ID，随机数等唯一标志</span><pre>getNamePre</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setNamePre" title="setNamePre :: 设置文件名前缀，可以是用户ID，随机数等唯一标志">
            <span class="description">设置文件名前缀，可以是用户ID，随机数等唯一标志</span><pre>setNamePre</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getNameRule" title="getNameRule :: 获取保存文件时的命名规则
0：原文件名、1：随机整数格式、2：随机字符串格式、3：日期和时间格式、4：日期和时间+随机整数格式
5：日期和时间+随机字符串格式、6：时间戳格式、7：时间戳+随机整数格式、8：时间戳+随机字符串格式">
            <span class="description">获取保存文件时的命名规则
0：原文件名、1：随机整数格式、2：随机字符串格式、3：日期和时间格式、4：日期和时间+随机整数格式
5：日期和时间+随机字符串格式、6：时间戳格式、7：时间戳+随机整数格式、8：时间戳+随机字符串格式</span><pre>getNameRule</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setNameRule" title="setNameRule :: 设置保存文件时的命名规则
0：原文件名、1：随机整数格式、2：随机字符串格式、3：日期和时间格式、4：日期和时间+随机整数格式
5：日期和时间+随机字符串格式、6：时间戳格式、7：时间戳+随机整数格式、8：时间戳+随机字符串格式">
            <span class="description">设置保存文件时的命名规则
0：原文件名、1：随机整数格式、2：随机字符串格式、3：日期和时间格式、4：日期和时间+随机整数格式
5：日期和时间+随机字符串格式、6：时间戳格式、7：时间戳+随机整数格式、8：时间戳+随机字符串格式</span><pre>setNameRule</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getMaxSize" title="getMaxSize :: 获取允许上传的文件大小最大值">
            <span class="description">获取允许上传的文件大小最大值</span><pre>getMaxSize</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setMaxSize" title="setMaxSize :: 设置允许上传的文件大小最大值">
            <span class="description">设置允许上传的文件大小最大值</span><pre>setMaxSize</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getAllowTypes" title="getAllowTypes :: 获取所有允许上传的文件类型">
            <span class="description">获取所有允许上传的文件类型</span><pre>getAllowTypes</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setAllowTypes" title="setAllowTypes :: 设置所有允许上传的文件类型">
            <span class="description">设置所有允许上传的文件类型</span><pre>setAllowTypes</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getAllowExts" title="getAllowExts :: 获取所有允许上传的文件后缀">
            <span class="description">获取所有允许上传的文件后缀</span><pre>getAllowExts</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setAllowExts" title="setAllowExts :: 设置所有允许上传的文件后缀">
            <span class="description">设置所有允许上传的文件后缀</span><pre>setAllowExts</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getAllowReplaceExists" title="getAllowReplaceExists :: 获取如果保存文件的地址已经存在其他文件，是否允许替换">
            <span class="description">获取如果保存文件的地址已经存在其他文件，是否允许替换</span><pre>getAllowReplaceExists</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setAllowReplaceExists" title="setAllowReplaceExists :: 设置如果保存文件的地址已经存在其他文件，是否允许替换">
            <span class="description">设置如果保存文件的地址已经存在其他文件，是否允许替换</span><pre>setAllowReplaceExists</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getDtFormat" title="getDtFormat :: 获取日期和时间的格式">
            <span class="description">获取日期和时间的格式</span><pre>getDtFormat</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setDtFormat" title="setDtFormat :: 设置日期和时间的格式">
            <span class="description">设置日期和时间的格式</span><pre>setDtFormat</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getJoinStr" title="getJoinStr :: 获取文件名的连接符">
            <span class="description">获取文件名的连接符</span><pre>getJoinStr</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setJoinStr" title="setJoinStr :: 设置文件名的连接符">
            <span class="description">设置文件名的连接符</span><pre>setJoinStr</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getRandMin" title="getRandMin :: 获取文件名中随机数取值范围，最小值">
            <span class="description">获取文件名中随机数取值范围，最小值</span><pre>getRandMin</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setRandMin" title="setRandMin :: 设置文件名中随机数取值范围，最小值">
            <span class="description">设置文件名中随机数取值范围，最小值</span><pre>setRandMin</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getRandMax" title="getRandMax :: 获取文件名中随机数取值范围，最大值">
            <span class="description">获取文件名中随机数取值范围，最大值</span><pre>getRandMax</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setRandMax" title="setRandMax :: 设置文件名中随机数取值范围，最大值">
            <span class="description">设置文件名中随机数取值范围，最大值</span><pre>setRandMax</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getRandStrLen" title="getRandStrLen :: 获取文件名中随机字符串长度，取值 8-32">
            <span class="description">获取文件名中随机字符串长度，取值 8-32</span><pre>getRandStrLen</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setRandStrLen" title="setRandStrLen :: 设置文件名中随机字符串长度，取值 8-32">
            <span class="description">设置文件名中随机字符串长度，取值 8-32</span><pre>setRandStrLen</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getFileExt" title="getFileExt :: 通过文件名获取文件后缀，文件后缀已转化成小写字符">
            <span class="description">通过文件名获取文件后缀，文件后缀已转化成小写字符</span><pre>getFileExt</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getDateTime" title="getDateTime :: 获取日期和时间">
            <span class="description">获取日期和时间</span><pre>getDateTime</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getTimestamp" title="getTimestamp :: 获取时间戳">
            <span class="description">获取时间戳</span><pre>getTimestamp</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getRandInteger" title="getRandInteger :: 获取随机整数">
            <span class="description">获取随机整数</span><pre>getRandInteger</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getRandString" title="getRandString :: 获取随机字符串">
            <span class="description">获取随机字符串</span><pre>getRandString</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_random" title="random :: 获取随机数">
            <span class="description">获取随机数</span><pre>random</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_cleanFileName" title="cleanFileName :: 清理文件名">
            <span class="description">清理文件名</span><pre>cleanFileName</pre>
        </a>
    </li>

                                                </ul>
        </li>
        <li class="nav-header protected">» Protected
            <ul>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </ul>
        </li>
        <li class="nav-header private">» Private
            <ul>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </ul>
        </li>
        <li class="nav-header">
            <i class="icon-custom icon-constant"></i> Constants
            <ul>
                                <li class="constant ">
                    <a href="#constant_NAMERULE_NULL" title="NAMERULE_NULL :: ">
                        <span class="description"></span><pre>NAMERULE_NULL</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_NAMERULE_RAND_INTEGER" title="NAMERULE_RAND_INTEGER :: ">
                        <span class="description"></span><pre>NAMERULE_RAND_INTEGER</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_NAMERULE_RAND_STRING" title="NAMERULE_RAND_STRING :: ">
                        <span class="description"></span><pre>NAMERULE_RAND_STRING</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_NAMERULE_DATETIME" title="NAMERULE_DATETIME :: ">
                        <span class="description"></span><pre>NAMERULE_DATETIME</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_NAMERULE_DATETIME_RAND_INTEGER" title="NAMERULE_DATETIME_RAND_INTEGER :: ">
                        <span class="description"></span><pre>NAMERULE_DATETIME_RAND_INTEGER</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_NAMERULE_DATETIME_RAND_STRING" title="NAMERULE_DATETIME_RAND_STRING :: ">
                        <span class="description"></span><pre>NAMERULE_DATETIME_RAND_STRING</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_NAMERULE_TIMESTAMP" title="NAMERULE_TIMESTAMP :: ">
                        <span class="description"></span><pre>NAMERULE_TIMESTAMP</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_NAMERULE_TIMESTAMP_RAND_INTEGER" title="NAMERULE_TIMESTAMP_RAND_INTEGER :: ">
                        <span class="description"></span><pre>NAMERULE_TIMESTAMP_RAND_INTEGER</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_NAMERULE_TIMESTAMP_RAND_STRING" title="NAMERULE_TIMESTAMP_RAND_STRING :: ">
                        <span class="description"></span><pre>NAMERULE_TIMESTAMP_RAND_STRING</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_SUCCESS_NUM" title="SUCCESS_NUM :: ">
                        <span class="description"></span><pre>SUCCESS_NUM</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_ERROR_REQUEST" title="ERROR_REQUEST :: ">
                        <span class="description"></span><pre>ERROR_REQUEST</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_ERR_ABOVE_MAX_SIZE" title="ERR_ABOVE_MAX_SIZE :: ">
                        <span class="description"></span><pre>ERR_ABOVE_MAX_SIZE</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_ERR_DISALLOW_TYPE" title="ERR_DISALLOW_TYPE :: ">
                        <span class="description"></span><pre>ERR_DISALLOW_TYPE</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_ERR_DISALLOW_EXT" title="ERR_DISALLOW_EXT :: ">
                        <span class="description"></span><pre>ERR_DISALLOW_EXT</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_ERR_FILE_ALREADY_EXISTS" title="ERR_FILE_ALREADY_EXISTS :: ">
                        <span class="description"></span><pre>ERR_FILE_ALREADY_EXISTS</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_ERR_DISALLOW_UPLOAD" title="ERR_DISALLOW_UPLOAD :: ">
                        <span class="description"></span><pre>ERR_DISALLOW_UPLOAD</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_ERR_MOVE_UPLOADED_FILE" title="ERR_MOVE_UPLOADED_FILE :: ">
                        <span class="description"></span><pre>ERR_MOVE_UPLOADED_FILE</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_ERR_UPLOADED_FAILED" title="ERR_UPLOADED_FAILED :: ">
                        <span class="description"></span><pre>ERR_UPLOADED_FAILED</pre>
                    </a>
                </li>
                            </ul>
        </li>
    </ul>


        </div>

        <div class="span8">
            <div class="element class">
                <h1>Upload</h1>
                <small style="display: block; text-align: right">
                                                        </small>
                <p class="short_description">Upload class file
上传文件类</p>
                <div class="details">
                    <div class="long_description">
                        
                    </div>
                    <table class="table table-bordered">
                                                                                    <tr>
                                    <th>
                                        author
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>宋欢 <a href="mailto:trotri@yeah.net">trotri@yeah.net</a></p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        version
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>$Id: Upload.php 1 2013-03-29 16:48:06Z huan.song $</p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        package
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>tfc.util</p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        since
                                                                            </th>
                                    <td>
                                                                                    1.0
                                                                                
                                    </td>
                                </tr>
                                                                                                                                                                                                                                    </table>

                    <h3><i class="icon-custom icon-method"></i> Methods</h3>
                                                                <a id="method___construct"></a>
                        <div class="element clickable method public  method___construct" data-toggle="collapse" data-target=".method___construct .collapse">
                            <h2>构造方法：初始化上传文件保存目录、文件的命名规则、保存文件的地址已经存在其他文件，是否允许替换</h2>
                            <pre>__construct(string $saveDir, integer $nameRule = self::NAMERULE_NULL, boolean $allowReplaceExists = false) </pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$saveDir</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$nameRule</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$allowReplaceExists</h4>
                                                <code>boolean</code><p></p>
                                            </div>
                                                                            
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_save"></a>
                        <div class="element clickable method public  method_save" data-toggle="collapse" data-target=".method_save .collapse">
                            <h2>检查并上传文件</h2>
                            <pre>save(array $files) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果参数错误，抛出异常</p>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果上传的文件大小超过限制，抛出异常</p>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果上传的文件类型不在允许列表中，抛出异常</p>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果上传的文件后缀不在允许列表中，抛出异常</p>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果指定的存放地址已经存在其他文件，并且不允许替换其他文件，抛出异常</p>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果可能是攻击性质的上传，抛出异常</p>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果上传失败，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$files</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getFileName"></a>
                        <div class="element clickable method public  method_getFileName" data-toggle="collapse" data-target=".method_getFileName .collapse">
                            <h2>获取最终保存的文件名</h2>
                            <pre>getFileName(string $rawFileName) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$rawFileName</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_checkSize"></a>
                        <div class="element clickable method public  method_checkSize" data-toggle="collapse" data-target=".method_checkSize .collapse">
                            <h2>检查上传的文件大小是否超过最大值</h2>
                            <pre>checkSize(integer $size) : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$size</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_checkType"></a>
                        <div class="element clickable method public  method_checkType" data-toggle="collapse" data-target=".method_checkType .collapse">
                            <h2>检查上传的文件类型是否允许</h2>
                            <pre>checkType(string $type) : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$type</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_checkExt"></a>
                        <div class="element clickable method public  method_checkExt" data-toggle="collapse" data-target=".method_checkExt .collapse">
                            <h2>检查上传的文件后缀是否允许</h2>
                            <pre>checkExt(string $fileName) : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$fileName</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_checkSavePath"></a>
                        <div class="element clickable method public  method_checkSavePath" data-toggle="collapse" data-target=".method_checkSavePath .collapse">
                            <h2>检查上传完文件后的完整路径
果保存文件的地址不存在其他文件，返回True；如果已经存在其他文件并且允许替换其他文件，返回True；否则返回False</h2>
                            <pre>checkSavePath(string $savePath) : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$savePath</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_checkUpload"></a>
                        <div class="element clickable method public  method_checkUpload" data-toggle="collapse" data-target=".method_checkUpload .collapse">
                            <h2>检查文件是否是通过 HTTP POST上传的，如果不是则可能是攻击性质的上传</h2>
                            <pre>checkUpload(string $fileName) : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$fileName</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getSavePath"></a>
                        <div class="element clickable method public  method_getSavePath" data-toggle="collapse" data-target=".method_getSavePath .collapse">
                            <h2>获取上传完文件后的完整路径</h2>
                            <pre>getSavePath() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getSaveDir"></a>
                        <div class="element clickable method public  method_getSaveDir" data-toggle="collapse" data-target=".method_getSaveDir .collapse">
                            <h2>获取上传文件保存目录</h2>
                            <pre>getSaveDir() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setSaveDir"></a>
                        <div class="element clickable method public  method_setSaveDir" data-toggle="collapse" data-target=".method_setSaveDir .collapse">
                            <h2>设置上传文件保存目录</h2>
                            <pre>setSaveDir(string $saveDir) : \tfc\util\Upload</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果保存上传文件的目录不存在，抛出异常</p>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果保存上传文件的目录没有可写权限，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$saveDir</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Upload.html">\tfc\util\Upload</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getNamePre"></a>
                        <div class="element clickable method public  method_getNamePre" data-toggle="collapse" data-target=".method_getNamePre .collapse">
                            <h2>获取文件名前缀，可以是用户ID，随机数等唯一标志</h2>
                            <pre>getNamePre() : mixed</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>mixed</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setNamePre"></a>
                        <div class="element clickable method public  method_setNamePre" data-toggle="collapse" data-target=".method_setNamePre .collapse">
                            <h2>设置文件名前缀，可以是用户ID，随机数等唯一标志</h2>
                            <pre>setNamePre(mixed $namePre) : \tfc\util\Upload</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$namePre</h4>
                                                <code>mixed</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Upload.html">\tfc\util\Upload</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getNameRule"></a>
                        <div class="element clickable method public  method_getNameRule" data-toggle="collapse" data-target=".method_getNameRule .collapse">
                            <h2>获取保存文件时的命名规则
0：原文件名、1：随机整数格式、2：随机字符串格式、3：日期和时间格式、4：日期和时间+随机整数格式
5：日期和时间+随机字符串格式、6：时间戳格式、7：时间戳+随机整数格式、8：时间戳+随机字符串格式</h2>
                            <pre>getNameRule() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setNameRule"></a>
                        <div class="element clickable method public  method_setNameRule" data-toggle="collapse" data-target=".method_setNameRule .collapse">
                            <h2>设置保存文件时的命名规则
0：原文件名、1：随机整数格式、2：随机字符串格式、3：日期和时间格式、4：日期和时间+随机整数格式
5：日期和时间+随机字符串格式、6：时间戳格式、7：时间戳+随机整数格式、8：时间戳+随机字符串格式</h2>
                            <pre>setNameRule(integer $nameRule) : \tfc\util\Upload</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果参数是无效命名规则，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$nameRule</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Upload.html">\tfc\util\Upload</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getMaxSize"></a>
                        <div class="element clickable method public  method_getMaxSize" data-toggle="collapse" data-target=".method_getMaxSize .collapse">
                            <h2>获取允许上传的文件大小最大值</h2>
                            <pre>getMaxSize() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setMaxSize"></a>
                        <div class="element clickable method public  method_setMaxSize" data-toggle="collapse" data-target=".method_setMaxSize .collapse">
                            <h2>设置允许上传的文件大小最大值</h2>
                            <pre>setMaxSize(integer $maxSize) : \tfc\util\Upload</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$maxSize</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Upload.html">\tfc\util\Upload</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getAllowTypes"></a>
                        <div class="element clickable method public  method_getAllowTypes" data-toggle="collapse" data-target=".method_getAllowTypes .collapse">
                            <h2>获取所有允许上传的文件类型</h2>
                            <pre>getAllowTypes() : array</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>array</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setAllowTypes"></a>
                        <div class="element clickable method public  method_setAllowTypes" data-toggle="collapse" data-target=".method_setAllowTypes .collapse">
                            <h2>设置所有允许上传的文件类型</h2>
                            <pre>setAllowTypes(mixed $allowTypes) : \tfc\util\Upload</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果参数不是数组或字符串，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$allowTypes</h4>
                                                <code>mixed</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Upload.html">\tfc\util\Upload</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getAllowExts"></a>
                        <div class="element clickable method public  method_getAllowExts" data-toggle="collapse" data-target=".method_getAllowExts .collapse">
                            <h2>获取所有允许上传的文件后缀</h2>
                            <pre>getAllowExts() : array</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>array</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setAllowExts"></a>
                        <div class="element clickable method public  method_setAllowExts" data-toggle="collapse" data-target=".method_setAllowExts .collapse">
                            <h2>设置所有允许上传的文件后缀</h2>
                            <pre>setAllowExts(array $allowExts) : \tfc\util\Upload</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果参数不是数组或字符串，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$allowExts</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Upload.html">\tfc\util\Upload</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getAllowReplaceExists"></a>
                        <div class="element clickable method public  method_getAllowReplaceExists" data-toggle="collapse" data-target=".method_getAllowReplaceExists .collapse">
                            <h2>获取如果保存文件的地址已经存在其他文件，是否允许替换</h2>
                            <pre>getAllowReplaceExists() : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setAllowReplaceExists"></a>
                        <div class="element clickable method public  method_setAllowReplaceExists" data-toggle="collapse" data-target=".method_setAllowReplaceExists .collapse">
                            <h2>设置如果保存文件的地址已经存在其他文件，是否允许替换</h2>
                            <pre>setAllowReplaceExists(boolean $allowReplaceExists) : \tfc\util\Upload</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$allowReplaceExists</h4>
                                                <code>boolean</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Upload.html">\tfc\util\Upload</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getDtFormat"></a>
                        <div class="element clickable method public  method_getDtFormat" data-toggle="collapse" data-target=".method_getDtFormat .collapse">
                            <h2>获取日期和时间的格式</h2>
                            <pre>getDtFormat() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setDtFormat"></a>
                        <div class="element clickable method public  method_setDtFormat" data-toggle="collapse" data-target=".method_setDtFormat .collapse">
                            <h2>设置日期和时间的格式</h2>
                            <pre>setDtFormat(string $dtFormat) : \tfc\util\Upload</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$dtFormat</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Upload.html">\tfc\util\Upload</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getJoinStr"></a>
                        <div class="element clickable method public  method_getJoinStr" data-toggle="collapse" data-target=".method_getJoinStr .collapse">
                            <h2>获取文件名的连接符</h2>
                            <pre>getJoinStr() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setJoinStr"></a>
                        <div class="element clickable method public  method_setJoinStr" data-toggle="collapse" data-target=".method_setJoinStr .collapse">
                            <h2>设置文件名的连接符</h2>
                            <pre>setJoinStr(string $joinStr) : \tfc\util\Upload</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$joinStr</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Upload.html">\tfc\util\Upload</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getRandMin"></a>
                        <div class="element clickable method public  method_getRandMin" data-toggle="collapse" data-target=".method_getRandMin .collapse">
                            <h2>获取文件名中随机数取值范围，最小值</h2>
                            <pre>getRandMin() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setRandMin"></a>
                        <div class="element clickable method public  method_setRandMin" data-toggle="collapse" data-target=".method_setRandMin .collapse">
                            <h2>设置文件名中随机数取值范围，最小值</h2>
                            <pre>setRandMin(integer $randMin) : \tfc\util\Upload</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$randMin</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Upload.html">\tfc\util\Upload</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getRandMax"></a>
                        <div class="element clickable method public  method_getRandMax" data-toggle="collapse" data-target=".method_getRandMax .collapse">
                            <h2>获取文件名中随机数取值范围，最大值</h2>
                            <pre>getRandMax() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setRandMax"></a>
                        <div class="element clickable method public  method_setRandMax" data-toggle="collapse" data-target=".method_setRandMax .collapse">
                            <h2>设置文件名中随机数取值范围，最大值</h2>
                            <pre>setRandMax(integer $randMax) : \tfc\util\Upload</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$randMax</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Upload.html">\tfc\util\Upload</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getRandStrLen"></a>
                        <div class="element clickable method public  method_getRandStrLen" data-toggle="collapse" data-target=".method_getRandStrLen .collapse">
                            <h2>获取文件名中随机字符串长度，取值 8-32</h2>
                            <pre>getRandStrLen() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setRandStrLen"></a>
                        <div class="element clickable method public  method_setRandStrLen" data-toggle="collapse" data-target=".method_setRandStrLen .collapse">
                            <h2>设置文件名中随机字符串长度，取值 8-32</h2>
                            <pre>setRandStrLen(integer $strLen) : \tfc\util\Upload</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$strLen</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Upload.html">\tfc\util\Upload</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getFileExt"></a>
                        <div class="element clickable method public  method_getFileExt" data-toggle="collapse" data-target=".method_getFileExt .collapse">
                            <h2>通过文件名获取文件后缀，文件后缀已转化成小写字符</h2>
                            <pre>getFileExt(string $fileName) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$fileName</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getDateTime"></a>
                        <div class="element clickable method public  method_getDateTime" data-toggle="collapse" data-target=".method_getDateTime .collapse">
                            <h2>获取日期和时间</h2>
                            <pre>getDateTime() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getTimestamp"></a>
                        <div class="element clickable method public  method_getTimestamp" data-toggle="collapse" data-target=".method_getTimestamp .collapse">
                            <h2>获取时间戳</h2>
                            <pre>getTimestamp() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getRandInteger"></a>
                        <div class="element clickable method public  method_getRandInteger" data-toggle="collapse" data-target=".method_getRandInteger .collapse">
                            <h2>获取随机整数</h2>
                            <pre>getRandInteger() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getRandString"></a>
                        <div class="element clickable method public  method_getRandString" data-toggle="collapse" data-target=".method_getRandString .collapse">
                            <h2>获取随机字符串</h2>
                            <pre>getRandString() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_random"></a>
                        <div class="element clickable method public  method_random" data-toggle="collapse" data-target=".method_random .collapse">
                            <h2>获取随机数</h2>
                            <pre>random() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_cleanFileName"></a>
                        <div class="element clickable method public  method_cleanFileName" data-toggle="collapse" data-target=".method_cleanFileName .collapse">
                            <h2>清理文件名</h2>
                            <pre>cleanFileName(string $fileName) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$fileName</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                    
                                            <h3><i class="icon-custom icon-constant"></i> Constants</h3>
                                                    <a id="constant_NAMERULE_NULL"> </a>
                            <div class="element clickable constant  constant_NAMERULE_NULL" data-toggle="collapse" data-target=".constant_NAMERULE_NULL .collapse">
                                <h2>NAMERULE_NULL</h2>
                                <pre>NAMERULE_NULL</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件的命名规则：原文件名</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_NAMERULE_RAND_INTEGER"> </a>
                            <div class="element clickable constant  constant_NAMERULE_RAND_INTEGER" data-toggle="collapse" data-target=".constant_NAMERULE_RAND_INTEGER .collapse">
                                <h2>NAMERULE_RAND_INTEGER</h2>
                                <pre>NAMERULE_RAND_INTEGER</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件的命名规则：随机整数格式</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_NAMERULE_RAND_STRING"> </a>
                            <div class="element clickable constant  constant_NAMERULE_RAND_STRING" data-toggle="collapse" data-target=".constant_NAMERULE_RAND_STRING .collapse">
                                <h2>NAMERULE_RAND_STRING</h2>
                                <pre>NAMERULE_RAND_STRING</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件的命名规则：随机字符串格式</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_NAMERULE_DATETIME"> </a>
                            <div class="element clickable constant  constant_NAMERULE_DATETIME" data-toggle="collapse" data-target=".constant_NAMERULE_DATETIME .collapse">
                                <h2>NAMERULE_DATETIME</h2>
                                <pre>NAMERULE_DATETIME</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件的命名规则：日期和时间格式</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_NAMERULE_DATETIME_RAND_INTEGER"> </a>
                            <div class="element clickable constant  constant_NAMERULE_DATETIME_RAND_INTEGER" data-toggle="collapse" data-target=".constant_NAMERULE_DATETIME_RAND_INTEGER .collapse">
                                <h2>NAMERULE_DATETIME_RAND_INTEGER</h2>
                                <pre>NAMERULE_DATETIME_RAND_INTEGER</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件的命名规则：日期和时间+随机整数格式</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_NAMERULE_DATETIME_RAND_STRING"> </a>
                            <div class="element clickable constant  constant_NAMERULE_DATETIME_RAND_STRING" data-toggle="collapse" data-target=".constant_NAMERULE_DATETIME_RAND_STRING .collapse">
                                <h2>NAMERULE_DATETIME_RAND_STRING</h2>
                                <pre>NAMERULE_DATETIME_RAND_STRING</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件的命名规则：日期和时间+随机字符串格式</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_NAMERULE_TIMESTAMP"> </a>
                            <div class="element clickable constant  constant_NAMERULE_TIMESTAMP" data-toggle="collapse" data-target=".constant_NAMERULE_TIMESTAMP .collapse">
                                <h2>NAMERULE_TIMESTAMP</h2>
                                <pre>NAMERULE_TIMESTAMP</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件的命名规则：时间戳格式</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_NAMERULE_TIMESTAMP_RAND_INTEGER"> </a>
                            <div class="element clickable constant  constant_NAMERULE_TIMESTAMP_RAND_INTEGER" data-toggle="collapse" data-target=".constant_NAMERULE_TIMESTAMP_RAND_INTEGER .collapse">
                                <h2>NAMERULE_TIMESTAMP_RAND_INTEGER</h2>
                                <pre>NAMERULE_TIMESTAMP_RAND_INTEGER</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件的命名规则：时间戳+随机整数格式</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_NAMERULE_TIMESTAMP_RAND_STRING"> </a>
                            <div class="element clickable constant  constant_NAMERULE_TIMESTAMP_RAND_STRING" data-toggle="collapse" data-target=".constant_NAMERULE_TIMESTAMP_RAND_STRING .collapse">
                                <h2>NAMERULE_TIMESTAMP_RAND_STRING</h2>
                                <pre>NAMERULE_TIMESTAMP_RAND_STRING</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件的命名规则：时间戳+随机字符串格式</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_SUCCESS_NUM"> </a>
                            <div class="element clickable constant  constant_SUCCESS_NUM" data-toggle="collapse" data-target=".constant_SUCCESS_NUM .collapse">
                                <h2>SUCCESS_NUM</h2>
                                <pre>SUCCESS_NUM</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>OK</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_ERROR_REQUEST"> </a>
                            <div class="element clickable constant  constant_ERROR_REQUEST" data-toggle="collapse" data-target=".constant_ERROR_REQUEST .collapse">
                                <h2>ERROR_REQUEST</h2>
                                <pre>ERROR_REQUEST</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>参数错误</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_ERR_ABOVE_MAX_SIZE"> </a>
                            <div class="element clickable constant  constant_ERR_ABOVE_MAX_SIZE" data-toggle="collapse" data-target=".constant_ERR_ABOVE_MAX_SIZE .collapse">
                                <h2>ERR_ABOVE_MAX_SIZE</h2>
                                <pre>ERR_ABOVE_MAX_SIZE</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>上传文件失败：文件大小超过最大限制</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_ERR_DISALLOW_TYPE"> </a>
                            <div class="element clickable constant  constant_ERR_DISALLOW_TYPE" data-toggle="collapse" data-target=".constant_ERR_DISALLOW_TYPE .collapse">
                                <h2>ERR_DISALLOW_TYPE</h2>
                                <pre>ERR_DISALLOW_TYPE</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>上传文件失败：文件类型不在可允许的范围内</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_ERR_DISALLOW_EXT"> </a>
                            <div class="element clickable constant  constant_ERR_DISALLOW_EXT" data-toggle="collapse" data-target=".constant_ERR_DISALLOW_EXT .collapse">
                                <h2>ERR_DISALLOW_EXT</h2>
                                <pre>ERR_DISALLOW_EXT</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>上传文件失败：文件后缀名不在可允许的范围内</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_ERR_FILE_ALREADY_EXISTS"> </a>
                            <div class="element clickable constant  constant_ERR_FILE_ALREADY_EXISTS" data-toggle="collapse" data-target=".constant_ERR_FILE_ALREADY_EXISTS .collapse">
                                <h2>ERR_FILE_ALREADY_EXISTS</h2>
                                <pre>ERR_FILE_ALREADY_EXISTS</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>上传文件失败：保存文件的地址已经存在其他文件，并且不允许替换</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_ERR_DISALLOW_UPLOAD"> </a>
                            <div class="element clickable constant  constant_ERR_DISALLOW_UPLOAD" data-toggle="collapse" data-target=".constant_ERR_DISALLOW_UPLOAD .collapse">
                                <h2>ERR_DISALLOW_UPLOAD</h2>
                                <pre>ERR_DISALLOW_UPLOAD</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>上传文件失败：有可能是攻击性质的上传</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_ERR_MOVE_UPLOADED_FILE"> </a>
                            <div class="element clickable constant  constant_ERR_MOVE_UPLOADED_FILE" data-toggle="collapse" data-target=".constant_ERR_MOVE_UPLOADED_FILE .collapse">
                                <h2>ERR_MOVE_UPLOADED_FILE</h2>
                                <pre>ERR_MOVE_UPLOADED_FILE</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>上传文件失败：将临时文件更新到指定目录失败</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_ERR_UPLOADED_FAILED"> </a>
                            <div class="element clickable constant  constant_ERR_UPLOADED_FAILED" data-toggle="collapse" data-target=".constant_ERR_UPLOADED_FAILED .collapse">
                                <h2>ERR_UPLOADED_FAILED</h2>
                                <pre>ERR_UPLOADED_FAILED</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>上传文件失败：未知原因</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                            
                                                                <h3><i class="icon-custom icon-property"></i> Properties</h3>
                                                    <a id="property__savePath"> </a>
                            <div class="element clickable property  protected property__savePath" data-toggle="collapse" data-target=".property__savePath .collapse">
                                <h2>上传完文件后的完整路径</h2>
                                <pre>_savePath : string</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>上传完文件后的完整路径</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__saveDir"> </a>
                            <div class="element clickable property  protected property__saveDir" data-toggle="collapse" data-target=".property__saveDir .collapse">
                                <h2>上传文件保存目录</h2>
                                <pre>_saveDir : string</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>上传文件保存目录</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__namePre"> </a>
                            <div class="element clickable property  protected property__namePre" data-toggle="collapse" data-target=".property__namePre .collapse">
                                <h2>文件名前缀，可以是用户ID，随机数等唯一标志</h2>
                                <pre>_namePre : string|integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件名前缀，可以是用户ID，随机数等唯一标志</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string|integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__nameRule"> </a>
                            <div class="element clickable property  protected property__nameRule" data-toggle="collapse" data-target=".property__nameRule .collapse">
                                <h2>保存文件时的命名规则
0：原文件名、1：随机整数格式、2：随机字符串格式、3：日期和时间格式、4：日期和时间+随机整数格式
5：日期和时间+随机字符串格式、6：时间戳格式、7：时间戳+随机整数格式、8：时间戳+随机字符串格式</h2>
                                <pre>_nameRule : integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>保存文件时的命名规则
0：原文件名、1：随机整数格式、2：随机字符串格式、3：日期和时间格式、4：日期和时间+随机整数格式
5：日期和时间+随机字符串格式、6：时间戳格式、7：时间戳+随机整数格式、8：时间戳+随机字符串格式</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__maxSize"> </a>
                            <div class="element clickable property  protected property__maxSize" data-toggle="collapse" data-target=".property__maxSize .collapse">
                                <h2>允许上传的文件大小最大值，单位：字节</h2>
                                <pre>_maxSize : integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>允许上传的文件大小最大值，单位：字节</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__allowTypes"> </a>
                            <div class="element clickable property  protected property__allowTypes" data-toggle="collapse" data-target=".property__allowTypes .collapse">
                                <h2>允许上传的文件类型</h2>
                                <pre>_allowTypes : array</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>允许上传的文件类型</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>array</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__allowExts"> </a>
                            <div class="element clickable property  protected property__allowExts" data-toggle="collapse" data-target=".property__allowExts .collapse">
                                <h2>允许上传的文件后缀</h2>
                                <pre>_allowExts : array</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>允许上传的文件后缀</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>array</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__allowReplaceExists"> </a>
                            <div class="element clickable property  protected property__allowReplaceExists" data-toggle="collapse" data-target=".property__allowReplaceExists .collapse">
                                <h2>如果保存文件的地址已经存在其他文件，是否允许替换</h2>
                                <pre>_allowReplaceExists : boolean</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>如果保存文件的地址已经存在其他文件，是否允许替换</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>boolean</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__dtFormat"> </a>
                            <div class="element clickable property  protected property__dtFormat" data-toggle="collapse" data-target=".property__dtFormat .collapse">
                                <h2>日期和时间的格式</h2>
                                <pre>_dtFormat : string</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>日期和时间的格式</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__joinStr"> </a>
                            <div class="element clickable property  protected property__joinStr" data-toggle="collapse" data-target=".property__joinStr .collapse">
                                <h2>文件名的连接符</h2>
                                <pre>_joinStr : string</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件名的连接符</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__randMin"> </a>
                            <div class="element clickable property  protected property__randMin" data-toggle="collapse" data-target=".property__randMin .collapse">
                                <h2>文件名中随机数取值范围，最小值</h2>
                                <pre>_randMin : integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件名中随机数取值范围，最小值</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__randMax"> </a>
                            <div class="element clickable property  protected property__randMax" data-toggle="collapse" data-target=".property__randMax .collapse">
                                <h2>文件名中随机数取值范围，最大值</h2>
                                <pre>_randMax : integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件名中随机数取值范围，最大值</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__randStrLen"> </a>
                            <div class="element clickable property  protected property__randStrLen" data-toggle="collapse" data-target=".property__randStrLen .collapse">
                                <h2>文件名中随机字符串长度，取值 8-32</h2>
                                <pre>_randStrLen : integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>文件名中随机字符串长度，取值 8-32</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                            </div>
            </div>
            <a id="\tfc\util\Upload"></a>
            <ul class="breadcrumb">
                <li><a href="../index.html"><i class="icon-custom icon-class"></i></a></li>
                    
    
    <li><span class="divider">\</span><a href="../namespaces/tfc.util.html">util</a></li>

                <li class="active"><span class="divider">\</span><a href="../classes/tfc.util.Upload.html">Upload</a></li>
            </ul>
        </div>
    </div>

    </div>

        <footer class="span12">
            Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by
            <a href="http://glyphicons.com/">Glyphicons</a>.<br/>
            Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and<br/>
            generated on Sat, 27 Dec 2014 06:16:38 +0000.<br/>
    </footer>
    </body>
</html>
